﻿using System.Text.Json.Serialization;

namespace VolcanoEngine.SDK.Dto
{
    /// <summary>
    /// 文本翻译
    /// </summary>
    public class VolcanoTextTranslationRequest
    {
        /// <summary>
        /// 源语言 [若不配置此字段，则代表自动检测源语言]
        /// </summary>
        [JsonPropertyName("SourceLanguage")]
        public string SourceLanguage { get; set; } = string.Empty;

        /// <summary>
        /// 目标语言
        /// </summary>
        [JsonPropertyName("TargetLanguage")]
        public string TargetLanguage { get; set; } = string.Empty;

        /// <summary>
        /// 待翻译的文本列表 [列表长度不超过16]
        /// </summary>
        [JsonPropertyName("TextList")]
        public string[] TextList { get; set; } = Array.Empty<string>();
    }
}
